package uy.com.tsi2G7.superbet.event;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import javax.persistence.Table;


@Table(name="EVENTS")
@Entity
public class Event {
	@Id 
	@Column(name="ID",length=50)
	private Long id;
	@Column(name="NAME",length=255)
	private String name;
	@Column(name="TYPE_ID",length=50)
	private Long eventTypeId;
	@Column(name="SOURCE_",length=50)
	@Enumerated(EnumType.STRING)
	private EventSource source;
	
	public Long getEventTypeId() {
		return eventTypeId;
	}
	public void setEventTypeId(Long eventTypeId) {
		this.eventTypeId = eventTypeId;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public EventSource getSource() {
		return source;
	}
	public void setSource(EventSource source) {
		this.source = source;
	}
}
